package com.sun.dailyprj.designpatterns.proxy;

/*
 * =====================================================================================
 * Summary:
 *
 * File: User.java
 * Author: Yanpeng.Sun
 * Create: 2019/10/31 16:35
 * =====================================================================================
 */
public class User{

    public static void main(String[] args) {
        /*在大陆买手机*/
        ShopPhone shopPhone = new ShopPhone();
        shopPhone.shopPhone("在大陆买了一个iPhone X，一共花了8888元");
        /*在香港买手机*/
        ProxyShopPhone proxyShopPhone = new ProxyShopPhone(shopPhone);
        proxyShopPhone.shopPhone("通过代购，在香港买了一个iphone X，一共花了6666元");
    }
}
